package com.zlsy.springbootdemo.decorator.rookietutorial;

/**
 * @author zhouliang
 * @date 2020/6/4 9:48
 */
public class RedShapeDecorator extends ShapeDecorator {
    //
    public RedShapeDecorator(Shape decoratedShape) {
        super(decoratedShape);
    }

    @Override
    public void draw() {
        decoratedShape.draw();
        setRedBorder();
    }

    /**
     * 设置装饰
     */
    private void setRedBorder() {
        System.out.println("边框颜色：红色");
    }
}
